//
//  YCUrlManger.m
//  HeartWorldClient
//
//  Created by 李珈旭 on 2016/10/20.
//  Copyright © 2016年 谭明权. All rights reserved.
//

#import "YCUrlManger.h"

//MARK: - 正式环境:YES 测试环境:NO

/*
 1-正式
 0-测试
 
 */
#define APP_DISTRIBUTION_APPSTORE 1

#if APP_DISTRIBUTION_APPSTORE

BOOL const APPServiceAPI_Distribution = YES;

BOOL const APP_JPUSH_ENVERIMENT = YES;

#else

BOOL const APPServiceAPI_Distribution = NO;

BOOL const APP_JPUSH_ENVERIMENT = NO;

#endif


@implementation YCUrlManger

//MARK: - 单例
JJSingletonM(YCUrlManger);


#pragma mark - URL的前半部分
//用户的token
-(NSString *)token
{
    //判断token 是否过期
    if (![YCCommonTool tokenExistAndAccess_tokenExpire]) {
        [DownloadData getAccess_token];
    }
    NSString *token = [YCUserManager sharedYCUserManager].accesstoken;
    return token;
}

//老接口URL的前半部分
-(NSString *)baseUrl
{
    if (APPServiceAPI_Distribution) {
        return @"https://weixin.yk2020.com/";
    }
    return @"http://192.168.100.228:8080/";
}
//newUrl的前半部分
-(NSString *)newBaseUrl
{
    if (APPServiceAPI_Distribution) {
        return @"https://weixin.yk2020.com/interface/app_nurse_all/";
    }
    return @"http://192.168.100.228:8080/interface/app_nurse_all/";
    
}


//绝对路径需拼接URL部分
-(NSString *)pinkUrl
{
    return @"http://wx-heartorg.yk2020.com/";
}
//护士帮Url前半部分
//http://192.168.100.228:8080/interface/app_nurse_member/
//PatientReminder.aspx?access_token=FBAEF125C40748F023F5CAEFB228CDB46915D4A0
-(NSString *)nurse_BaseUrl
{
    if (APPServiceAPI_Distribution) {
        return @"https://jiekou.yk2020.com/ServieYunAPI/";
    }else{       http://192.168.133.17:12677/
        return @"http://192.168.100.228:8080/interface/app_nurse_member/";
    }
}
//百度地图Url前半部分
-(NSString *)baidu_BaseUrl
{
    if (APPServiceAPI_Distribution) {
        return @"http://map.yk2020.com/WebMap/Index?";  
    }else{       http://192.168.133.17:12677/
        return @"http://192.168.133.17:25873/WebMap/Index?";
    }
}



#pragma mark - 绝对url
//获取token接口
- (NSString *)tokenUrl{
    return @"https://weixin.yk2020.com/interface/get_access_token.aspx?Appid=Q5dxyZO8Bt&AppSecret=320a49222435177cd7fbafa466cfb83d";
}
//推荐患者二维码
- (NSString *)QRMemHeadUrl{
    return @"https://weixin.yk2020.com/program/app_member_member_xj_qrcode.aspx?link_mobile=";
}


#pragma mark - 登陆注册管理
//用户检查Url
-(NSString *)logincheckUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/login_check.aspx?access_token=%@",self.baseUrl,self.token];
}
//获取验证码Url
-(NSString *)getregistercodeUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/get_register_code.aspx?access_token=%@",self.baseUrl,self.token];
}
//判断验证码Url
-(NSString *)resetcodestatusUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/reset_code_status.aspx?access_token=%@",self.baseUrl,self.token];
}
//验证验证码
- (NSString *)slash_resetCodeStatusUrl{
    return [NSString stringWithFormat:@"%@interface/app_member//reset_code_status.aspx?access_token=%@",self.baseUrl,self.token];
}

//新的获取验证码Url
-(NSString *)getappregistercodeUrl{
    return [NSString stringWithFormat:@"%@interface/get_app_register_code.aspx?access_token=%@",self.baseUrl,self.token];
}

//获取验证码--白宁
- (NSString *)getNewAppregistercodeUrl{
    return [NSString stringWithFormat:@"%@AppBaseService.asmx/GetSmSAPI?access_token=%@",self.nurse_BaseUrl,self.token];
}



//注册Url
-(NSString *)registerUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/register.aspx?access_token=%@",self.baseUrl,self.token];
}

- (NSString *)etmSocketRegisterUrl
{
    return [NSString stringWithFormat:@"https://jiekou.yk2020.com/ServiceYunRobotAPI/ServiceRobot.asmx/RobotRegUser?access_token=%@",self.token];
    
}

///获取验证码
- (NSString *)getSmsVoiceVerifyCodeUrl {
    return [NSString stringWithFormat:@"%@interface/app_jwsh/get_sms_voice_code.aspx?access_token=%@",self.baseUrl,self.token];
}

///验证码登陆或注册
- (NSString *)verifyCodeLoginUrl {
    return [NSString stringWithFormat:@"%@interface/app_member_op/login_code.aspx?access_token=%@",self.baseUrl,self.token];
}

///密码登录
- (NSString *)passwordLoginUrl {
    return [NSString stringWithFormat:@"%@interface/app_member_op/login_pwd.aspx?access_token=%@",self.baseUrl,self.token];
}

///验证码验证
- (NSString *)verifyCodeVerifyUrl {
    return [NSString stringWithFormat:@"%@interface/app_member_op/login_code_auth.aspx?access_token=%@",self.baseUrl,self.token];
}

///重置密码
- (NSString *)resetPasswordUrl {
    return [NSString stringWithFormat:@"%@interface/app_member_op/login_pwd_reset.aspx?access_token=%@",self.baseUrl,self.token];
}

///账号是否存在
- (NSString *)accoutIsExistUrl {
    return [NSString stringWithFormat:@"%@interface/app_member_op/login_account_exist.aspx?access_token=%@",self.baseUrl,self.token];
}


#pragma mark - 用户信息管理
//获取积分
-(NSString *)getIntegralUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/member_jf_total.aspx?access_token=%@",self.baseUrl,self.token];
}
//用户积分列表
-(NSString *)memberjflistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/member_jf_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//查询VIP会员卡
-(NSString *)vipcardnumberUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/vip_card_number.aspx?access_token=%@",self.baseUrl,self.token];
}
//是否签到过
-(NSString *)isSignInUrl{
    return [NSString stringWithFormat:@"%@interface/app_member_op/qd_check.aspx?access_token=%@",self.baseUrl,self.token];
}
//查询用户卡信息
-(NSString *)membercardinfoUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/member_card_info.aspx?access_token=%@",self.baseUrl,self.token];
}
//用户信息
-(NSString *)memberinfoUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/member_info.aspx?access_token=%@",self.baseUrl,self.token];
}


#pragma mark - 腕表和一体机
//个人病例管理
-(NSString *)mycaselistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/mycase_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//健康报告首页Url
-(NSString *)yjtAllUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/member_ytj_all.aspx?access_token=%@",self.baseUrl,self.token];
}
//腕表报告列表Url
-(NSString *)wblistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/member_wb_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//一体机报告列表Url
-(NSString *)yjtlistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/member_ytj_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//计步统计
- (NSString *)stepNumberUrl{
    return [NSString stringWithFormat:@"%@/interface/app_member/wb_stepcounter_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//睡眠检测
- (NSString *)sleepCheckUrl{
    return [NSString stringWithFormat:@"%@/interface/app_member/wb_sleep_list.aspx?access_token=%@",self.baseUrl,self.token];
}

#pragma mark - 医患关系管理
//家庭医生数据Url
-(NSString *)homeExpertlistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/home_expert_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//VIPflagUrl
-(NSString *)vipFlagUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/vip_flag.aspx?access_token=%@",self.baseUrl,self.token];
}
//家庭医生咨询数据Url
-(NSString *)consultlistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/consult_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//专家用户咨询数据Url
- (NSString *)expertconsultUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/expert_consult_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//咨询评价列表Url
-(NSString *)consultpjlistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/consult_pj_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//增加咨询提问页面Url
-(NSString *)consultaddUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/consult_add.aspx?access_token=%@",self.baseUrl,self.token];
}
//专家列表Url
-(NSString *)expertlistUrl
{
    return [NSString stringWithFormat:@"%@interface/app_member/expert_list.aspx?access_token=%@",self.baseUrl,self.token];
}


#pragma mark - 病例相关
//添加病例Url
-(NSString *)caseaddUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/case_add.aspx?access_token=%@",self.baseUrl,self.token];
}
//修改病例页面Url
-(NSString *)editCaseaddUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/case_edit.aspx?access_token=%@",self.baseUrl,self.token];
}
//是否是医生添加的患者
-(NSString *)expHzFlagUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/expert_hz_flag.aspx?access_token=%@",self.baseUrl,self.token];
}
//患者是否需要收费Url
- (NSString *)bxMoneyUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/person_bx_money_list.aspx?access_token=%@",self.baseUrl,self.token];
}

//邀请我的专家
- (NSString *)expertYqListUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/expert_yq_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//推荐专家Url
- (NSString *)tjexpertUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/expert_tj_list.aspx?access_token=%@",self.baseUrl,self.token];
}


#pragma mark - 就诊病例接口
//添加就诊人Url
-(NSString *)personaddUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/person_add.aspx?access_token=%@",self.baseUrl,self.token];
}
//删除就诊人Url
-(NSString *)persondeleteUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/person_delete.aspx?access_token=%@",self.baseUrl,self.token];
}
//更新就诊人信息Url
-(NSString *)updatepersoninfoUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/update_person_info.aspx?access_token=%@",self.baseUrl,self.token];
}
//删除病例Url
-(NSString *)casedeleteUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/case_delete.aspx?access_token=%@",self.baseUrl,self.token];
}
//病例列表
- (NSString *)caselistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/case_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//专家信息Url
-(NSString *)expertinfoUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/expert_info.aspx?access_token=%@",self.baseUrl,self.token];
}
//获取就诊人档案idUrl
-(NSString *)getrecordUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/getrecord_id.aspx?access_token=%@",self.baseUrl,self.token];
}
//就诊服务记录列表Url
-(NSString *)jzinfolistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/jz_info_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//就诊服务次数Url
-(NSString *)jzinfocountUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/jz_info_count.aspx?access_token=%@",self.baseUrl,self.token];
}
//用户阅片图片列表Url
-(NSString *)memberyppiclistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/member_yp_pic_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//用户阅片列表Url
-(NSString *)memberyplistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/member_yp_list.aspx?access_token=%@",self.baseUrl,self.token];
}


#pragma mark - 订单相关接口
//订单信息二维码Url
-(NSString *)orderQRcodeUrl{
    return [NSString stringWithFormat:@"%@program/get_qrcode.aspx",self.baseUrl];
}
//所有订单列表
-(NSString *)orderlistUrl{
    return [NSString stringWithFormat:@"%@interface/app_sale_card/order_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//订单信息Url
//-(NSString *)orderinfoUrl{
//    return [NSString stringWithFormat:@"%@interface/app_member/order_info.aspx?access_token=%@",self.baseUrl,self.token];
//}
//订单信息(远程会诊)Url
-(NSString *)groupOrderinfoUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/hz_info.aspx?access_token=%@",self.baseUrl,self.token];
}
//订单列表(远程会诊)Url
-(NSString *)groupOrderListUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/hz_info.aspx?access_token=%@",self.baseUrl,self.token];
}
//增加订单
-(NSString *)orderaddUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/order_add.aspx?access_token=%@",self.baseUrl,self.token];
}
//取消订单
-(NSString *)orderdeleteUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/order_delete.aspx?access_token=%@",self.baseUrl,self.token];
}
//我的咨询增加订单
-(NSString *)consultorderaddUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/consult_order_add.aspx?access_token=%@",self.baseUrl,self.token];
}
//咨询订单是否已经付款
-(NSString *)consultsfinfoUrl{
   return [NSString stringWithFormat:@"%@interface/app_member/consult_sf_info.aspx?access_token=%@",self.baseUrl,self.token];
}





//-(NSString *)zhifubaoZhanghaoUrl
//{
//    
//     return [NSString stringWithFormat:@"%@GetAlipayAccount.aspx?access_token=%@",self.newBaseUrl,self.token];
//    
//   
//    
////      return [NSString stringWithFormat:@"%@ServieYunAPI/AppBaseService.asmx/GetAlipayAccount?access_token=%@",self.baseUrl,self.token];
//    
//    
//}




#pragma mark - 支付相关接口
//预支付交易单号
-(NSString *)czunifiedorderUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/cz_UnifiedOrder.aspx?access_token=%@",self.baseUrl,self.token];
}
//预支付交易订单
//-(NSString *)unifiedOrderUrl{
//    return [NSString stringWithFormat:@"%@interface/app_member/UnifiedOrder.aspx?access_token=%@",self.baseUrl,self.token];
//}
//查看历史交易记录
- (NSString *)getHistoryRecordListUrl{
    return [NSString stringWithFormat:@"%@include/xfb_tranquery.aspx?access_token=%@",self.baseUrl,self.token];
}
//vipcardnumberUrl
-(NSString *)xfbbalancequerUrl{
    return [NSString stringWithFormat:@"%@include/xfb_balancequery.aspx?access_token=%@",self.baseUrl,self.token];
}
//我的账单详情
-(NSString *)xfbtranqueryUrl{
    return [NSString stringWithFormat:@"%@include/xfb_tranquery.aspx?access_token=%@",self.baseUrl,self.token];
}
//百倍爱心卡收入的数据
-(NSString *)zjbaibeiincomUrl{
    
    return [NSString stringWithFormat:@"%@interface/app_member/hz_money_info.aspx?access_token=%@",self.baseUrl,self.token];
}
//充值成功通知服务器Url
-(NSString *)xfbrechargequeryUrl{
    return [NSString stringWithFormat:@"%@include/xfb_rechargequery.aspx?access_token=%@",self.baseUrl,self.token];
}
//充值成功更新订单状态
-(NSString *)xfbconsumeUrl{
    return [NSString stringWithFormat:@"%@include/xfb_consume.aspx?access_token=%@",self.baseUrl,self.token];
}
//扣款成功后 更新订单状态
-(NSString *)onlinepayUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/online_pay.aspx?access_token=%@",self.baseUrl,self.token];
}
//支付成功后更新订单状态Url
//- (NSString *)success_onlinepayUrl{
//    return [NSString stringWithFormat:@"%@interface/app_member//online_pay.aspx?access_token=%@",self.baseUrl,self.token];
//}


#pragma mark - 七次健康服务
-(NSString *)GetServiceListUrl{
    return [NSString stringWithFormat:@"%@ServicePatient/ServiceYunAPI.asmx/GetServiceList?access_token=%@",self.newBaseUrl,self.token];
}


#pragma mark - 八大健康服务
//服务列表
- (NSString *)vipServerListUrl {
    return [NSString stringWithFormat:@"%@interface/app_member/vip_serve_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//增加预约服务的接口
- (NSString *)vipServeAddUrl {
    return [NSString stringWithFormat:@"%@interface/app_member/vip_serve_add.aspx?access_token=%@",self.baseUrl,self.token];
}
//就诊服务记录
- (NSString *)jzInfoListUrl {
    return [NSString stringWithFormat:@"%@interface/app_member/jz_info_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//取消服务预约的接口
- (NSString *)vipServerOrderDeleteUrl {
    return [NSString stringWithFormat:@"%@interface/app_member/vip_serve_order_delete.aspx?access_token=%@",self.baseUrl,self.token];
}
//订单详情接口页面
- (NSString *)vipOrderInfoUrl {
    return [NSString stringWithFormat:@"%@interface/app_member/vip_order_info.aspx?access_token=%@",self.baseUrl,self.token];
}


#pragma mark - 我的会诊
//会诊列表
-(NSString *)patientHzRecordUrl{
    return [NSString stringWithFormat:@"%@ServicePatient/ServiceYunAPI.asmx/PatientHzRecord?access_token=%@",self.newBaseUrl,self.token];
}
//报告详情
-(NSString *)getConsultationResult{
    return [NSString stringWithFormat:@"%@AppBaseService.asmx/GetConsultationResult?access_token=%@",self.newBaseUrl,self.token];
}
//患者-会诊服务记录列表
- (NSString *)patientConsultServiceListUrl{
    return [NSString stringWithFormat:@"%@ServicePatient/ServiceYunAPI.asmx/GetMyServiceList?access_token=%@",self.newBaseUrl,self.token];
}
//患者-会诊服务列表详情
- (NSString *)patientConsultServiceDetailUrl{
    return [NSString stringWithFormat:@"%@ServicePatient/ServiceYunAPI.asmx/GetMyServiceDetail?access_token=%@",self.newBaseUrl,self.token];
}


#pragma mark - 爱心百倍卡
//app购买爱心百倍卡资金的接口
//-(NSString *)bxbuyokUrl{
//    return [NSString stringWithFormat:@"%@interface/app_member/bx_buy_ok.aspx?access_token=%@",self.baseUrl,self.token];
//}
//app端点击互助次数点去的列表页面的接口地址 传person_id page_num member_id
-(NSString *)personbxconsumelistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/person_bx_consume_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//app端爱心百倍卡保险信息接口
- (NSString *)bxInfoUrl {
    return [NSString stringWithFormat:@"%@interface/app_member/bx_info.aspx?access_token=%@",self.baseUrl,self.token];
}


//app端爱心百倍卡各种销售类型
- (NSString *)bxInfolistUrl {
    return [NSString stringWithFormat:@"%@interface/app_member/bx_info_list.aspx?access_token=%@",self.baseUrl,self.token];
}


//app端账单接口地址 传person_id page_num member_id
-(NSString *)personbxmoneylistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/person_bx_money_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//app端加入互助人的信息传member_id person_id
-(NSString *)personbxinfoUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/person_bx_info.aspx?access_token=%@",self.baseUrl,self.token];
}
//app端的 已加入轻松互助的就诊人的接口地址 传member_id
-(NSString *)personbxlistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/person_bx_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//提交出险的接口地址 member_id  参数person_id(出险人ID)  total_money(出险的总金额)   bx_money(已报销的金额)  bc_money(需要补偿的金额)  expense_file(出险证明图片)  expense_desc(出险说明)
-(NSString *)cxinfoaddUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/cx_info_add.aspx?access_token=%@",self.baseUrl,self.token];
}
///请求百倍爱心卡分享收入列表
-(NSString *)hzorderlistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/hz_order_list.aspx?access_token=%@",self.baseUrl,self.token];
}
///app端的 三级分销明细 接口
-(NSString *)threesalelistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/three_sale_list.aspx?access_token=%@",self.baseUrl,self.token];
}
///app端的获取销售人信息
-(NSString *)getsaleinfoUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/get_sale_info.aspx?access_token=%@",self.baseUrl,self.token];
}
#pragma mark - 申请提现
//http://192.168.100.228:8080/interface/app_member/income_money_add.aspx
///申请提现的接口
-(NSString *)apllyreflectUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/income_money_add.aspx?access_token=%@",self.baseUrl,self.token];
}
///查询提现余额的接口http://192.168.100.228:8080/interface/app_member/my_balance_info.aspx
//
-(NSString *)applyhasreflectUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/my_balance_info.aspx?access_token=%@",self.baseUrl,self.token];
}
///请求提现列表记录接口
-(NSString *)applyreflectListUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/income_money_list.aspx?access_token=%@",self.baseUrl,self.token];
}
#pragma mark - 我的附近药店
//药店列表
- (NSString *)drugStoreListUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/yd_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//我的附近药店医生列表
- (NSString *)drugRecommandListUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/yd_expert_list.aspx?access_token=%@",self.baseUrl,self.token];
}


#pragma mark - 其他相关
//新的患者医生聊天列表接口
- (NSString *)newPatientDoctorChatListUrl{
    return [NSString stringWithFormat:@"%@app_expert/consult_info_wz.aspx?access_token=%@",self.baseUrl,self.token];
}
//获取广告Url
- (NSString *)advertisementUrl{
    return [NSString stringWithFormat:@"%@AppAdinfo.asmx/GetAdlist?access_token=%@",self.newBaseUrl,self.token];
}
//城市列表数据Url
-(NSString *)provincelistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/province_list.aspx?access_token=%@",self.baseUrl,self.token];
}

- (NSString *)pushWXMessageUrl {
    return [NSString stringWithFormat:@"%@interface/app_member/consult_reply_info_ts.aspx?access_token=%@",self.baseUrl,self.token];
}

#pragma mark - 我的预约
//添加预约
- (NSString *)optOrderAddUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/opt_order_info_add.aspx?access_token=%@",self.baseUrl,self.token];
}
//预约列表
- (NSString *)optOrderListUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/opt_order_list.aspx?access_token=%@",self.baseUrl,self.token];
}


#pragma mark - 我的咨询
//获取用户用app的基本信息资料
- (NSString *)downloadAddUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/downloan_add.aspx?access_token=%@",self.baseUrl,self.token];
}
//用户评价
- (NSString *)consultPjAddUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/consult_pj_add.aspx?access_token=%@",self.baseUrl,self.token];
}
//发送图片和文字
- (NSString *)consultReplyInfoAddUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/consult_reply_info_add_wz.aspx?access_token=%@",self.baseUrl,self.token];
}
//获取聊天记录
- (NSString *)consultReplyListUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/consult_reply_list_wz.aspx?access_token=%@",self.baseUrl,self.token];
}
//聊天标题
- (NSString *)consultTitleUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/consult_title.aspx?access_token=%@",self.baseUrl,self.token];
}


#pragma mark - 医院相关
//医生专家服务
- (NSString *)hosExpertServeUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/hos_expert_serve.aspx?access_token=%@",self.baseUrl,self.token];
}
//接受邀请我的专家
- (NSString *)expertYqOkUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/expert_yq_ok.aspx?access_token=%@",self.baseUrl,self.token];
}
//医院专家列表
- (NSString *)hosExpertListUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/hos_expert_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//医院人员
- (NSString *)hosRyListUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/hos_ry_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//医院信息
- (NSString *)hosInfoUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/hos_info.aspx?access_token=%@",self.baseUrl,self.token];
}
//医院列表
- (NSString *)hosListUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/hos_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//医院提示是否使用地图
- (NSString *)hosZbUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/hos_zb.aspx?access_token=%@",self.baseUrl,self.token];
}


#pragma mark - 其他
//获取环信的RegisterID
- (NSString *)registerJgAddUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/register_jg_add.aspx?access_token=%@",self.baseUrl,self.token];
}
//获取专家状态
- (NSString *)registerStatusUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/register_status.aspx?access_token=%@",self.baseUrl,self.token];
}
//重置密码
- (NSString *)resetPwdUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/reset_pwd.aspx?access_token=%@",self.baseUrl,self.token];
}
//用户储蓄卡日期
- (NSString *)memberYueInfoUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/member_yue_info.aspx?access_token=%@",self.baseUrl,self.token];
}
//消息签到
- (NSString *)qdAddUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/qd_add.aspx?access_token=%@",self.baseUrl,self.token];
}
//省份列表
- (NSString *)provinceListUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/province_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//评分列表
- (NSString *)levelListUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/level_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//退出登录
- (NSString *)loginOutUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/login_out.aspx?access_token=%@",self.baseUrl,self.token];
}
//加载更多详情列表
- (NSString *)new_caselistUrl{
    return [NSString stringWithFormat:@"%@interface/app_member//case_list.aspx?access_token=%@",self.baseUrl,self.token];
}
//编辑
-(NSString *)editOkUrl{
    return [NSString stringWithFormat:@"%@interface/app_member/edit_ok.aspx?access_token=%@",self.baseUrl,self.token];
}


#pragma mark - 处方相关
//处方详情
- (NSString *)cfDetailUrl{
    return [NSString stringWithFormat:@"%@interface/app_member//cf_detail.aspx?access_token=%@",self.baseUrl,self.token];
}
//去下单
- (NSString *)cfOrderAddUrl{
    return [NSString stringWithFormat:@"%@interface/app_member//cf_order_add.aspx?access_token=%@",self.baseUrl,self.token];
}
//处方列表
- (NSString *)cfListUrl{
    return [NSString stringWithFormat:@"%@interface/app_member//cf_list.aspx?access_token=%@",self.baseUrl,self.token];
}
#pragma mark - 推送接口
//http://192.168.133.17:12677/ServieYunAPI/AppBaseService.asmx/SendJpushOrder
- (NSString *)sendCfNotiUrl
{
    return [NSString stringWithFormat:@"%@SendJpushOrder.aspx",self.nurse_BaseUrl];
}

#pragma mark - 护士帮相关
-(NSString *)AppointMentDetailUrl{
    return [NSString stringWithFormat:@"%@AppointMentDetail.aspx?access_token=%@",self.nurse_BaseUrl,self.token];
}


-(NSString *)getAppointMentListUrl
{
        return [NSString stringWithFormat:@"%@GetAppointMentList.aspx?access_token=%@",self.nurse_BaseUrl,self.token];
    
}


-(NSString *)getNurseServiceListUrl
{
    
    return [NSString stringWithFormat:@"%@GetNurseServiceList.aspx?access_token=%@",self.nurse_BaseUrl,self.token];
}

-(NSString *)sendAppointMentUrl
{
    
    
    return [NSString stringWithFormat:@"%@SendAppointMent.aspx?access_token=%@",self.nurse_BaseUrl,self.token];
    
}


-(NSString *)appointHeaderInfoUrl
{
    return [NSString stringWithFormat:@"%@AppointHeaderInfo.aspx?access_token=%@",self.nurse_BaseUrl,self.token];
}

//取消订单
-(NSString *)setCloseOrderUrl
{
    return [NSString stringWithFormat:@"%@SetCloseOrder.aspx?access_token=%@",self.nurse_BaseUrl,self.token];
}


#warning - 催单,没调
-(NSString *)patientReminderUrl
{
    return [NSString stringWithFormat:@"%@PatientReminder.aspx?access_token=%@",self.nurse_BaseUrl,self.token];
    
}

#warning - 结束订单,没调
- (NSString *)finishNurseOrderUrl
{
    return [NSString stringWithFormat:@"%@NurseOrderFinished.aspx?access_token=%@",self.nurse_BaseUrl,self.token];

}
//查看对护士的评价
- (NSString *)lookOverAppraiseUrl{
    return [NSString stringWithFormat:@"%@GetOrderCommentDetail.aspx?access_token=%@",self.nurse_BaseUrl,self.token];
}
//提交对护士的评价
- (NSString *)submitAppraiseUrl{
    return [NSString stringWithFormat:@"%@OrderComment.aspx?access_token=%@",self.nurse_BaseUrl,self.token];
}

#pragma mark - 转诊相关

//转诊详情
- (NSString *)referralDetailUrl {

    return [NSString stringWithFormat:@"%@interface/app_member_op/referral_info.aspx?access_token=%@",self.baseUrl,self.token];
}

//转诊申请列表
- (NSString *)referralListUrl {
    
    return [NSString stringWithFormat:@"%@interface/app_member_op/referral_list.aspx?access_token=%@",self.baseUrl,self.token];
}

//转诊申请
- (NSString *)referralAddtUrl {
    
    return [NSString stringWithFormat:@"%@interface/app_member_op/referral_add.aspx?access_token=%@",self.baseUrl,self.token];
}


//转诊医院列表接口
- (NSString *)referralHosListUrl {
    
    return [NSString stringWithFormat:@"%@interface/app_member_op/referral_hos_list.aspx?access_token=%@",self.baseUrl,self.token];
}



//ServicePatient/ServiceYunAPI.asmx/PatientReminder

#pragma mark - Webview载入的Url
//一体机报告详情界面载入的URL
-(NSString *)loadYTJReportUrl{
    return @"http://wx-heartorg.yk2020.com/weixin/index.php?m=Member&c=User&a=dangan_yitiji&member_mobile=";
}
//腕表报告详情界面载入的URL
-(NSString *)loadWBReportUrl{
    return @"http://wx-heartorg.yk2020.com/weixin/index.php?m=Member&c=User&a=dangan_expert&member_mobile=";
}
//百倍爱心卡首页URL
-(NSString *)loadJoinHMOUrl
{
    return @"http://wx-heartorg.yk2020.com/weixin/index.php?m=Member&c=Huzhu&a=jiaruxingdong";
}
//分享赢百倍爱心卡URL
-(NSString *)loadShareHMOUrl{
    return @"http://wx-heartorg.yk2020.com/weixin/index.php?m=Member&c=User&a=expand";
}



//爱心商城URL 列表
-(NSString *)loadHMOHtmlURL{
    return [NSString stringWithFormat:@"%@interface/app_sale_card/shopping_show.aspx",self.baseUrl];
}


@end
